﻿/// Author:					Walter Ferrari
/// Created:				2010-01-18
/// ref:                    http://www.snello.it
/// The use and distribution terms for this software are covered by the 
/// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)  
/// By using this software in any fashion, you are agreeing to be bound by 
/// the terms of this license.
///
/// You must not remove this notice, or any other, from this software.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Windows.Controls.DataVisualization.Charting;
using System.Windows.Data;
using System.Windows.Controls.DataVisualization.Charting.Primitives;
using System.Windows.Controls.Theming;
using InteractChartLib;
using InteractChartCommonLib;

namespace DataFilesViewer
{
    public partial class MainPage : UserControl
    {
        

        public MainPage()
        {
            InitializeComponent();

            AssembleEventHandlers();
            
        }

        	/// <summary>
		/// Assembles UI controls.
		/// </summary>
        private void AssembleEventHandlers()
        {
            dfvFilesList.DoDrop += delegate(object sender, RoutedEventArgs e)
            {
                Puppeteer.ManageDrop(sender, e);
            };

            dfvFilesList.SelectionChanged += delegate(object sender, RoutedEventArgs e)
            {
                Puppeteer.UpdateDataSectionPage(sender, e);
            };
        }

        
        private void ApplyStyle()
        {
            /*
            ShinyBlueTheme theme = new ShinyBlueTheme();
            InteractChart myChart = new InteractChart();
            myChart.Width = 800;
            myChart.Height = 700;
            theme.Content = myChart;
            LayoutRoot.Children.Add(theme);
             */
        }
        
    }
}
